<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>图片</title>
	<style type="text/css">
	.box{
		width: 100%;
		height: 500px;
	}
	.box img{
		height:200px;
		width: 200px;
		 }

	</style>
</head>
<body>
	
		<?php  
			for ($i=0; $i=<10 ; $i++) { ?>
			<div class="box">
				<h2><?php echo $i;?>这是一个新闻标题</h2>
				<?php if($i!=5){?>
				<img src="https://www.baidu.com/img/bd_logo1.png" alt="" />
				<p>这个是一个新闻描述</p>
			</div>
		<php    }?>
</body>
</html>